Build messageformat against the SDK and not the platform. It builds entirely against public API, so there's no reason to build against the platform. This makes it safe for use from applications. (cherry picked from commit 8ffc099ee3996e65fbff658b3942b59e4b6ac8c5) Change-Id: Ie94c5ec38688833ec3a8f1374e56482fdc94037a 
diff --git a/Android.mk b/Android.mk index 1f2c796..75ef32c 100644 --- a/Android.mk +++ b/Android.mk 
@@ -18,11 +18,12 @@  LOCAL_MODULE := messageformat  LOCAL_SRC_FILES := $(call all-java-files-under, java/)  LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt - +LOCAL_SDK_VERSION := 9  include $(BUILD_STATIC_JAVA_LIBRARY)    include $(CLEAR_VARS)  LOCAL_MODULE := messageformat-tests  LOCAL_STATIC_JAVA_LIBRARIES := messageformat junit-targetdex  LOCAL_SRC_FILES := $(call all-java-files-under, javatests/) +LOCAL_SDK_VERSION := 9  include $(BUILD_STATIC_JAVA_LIBRARY)